# -*- coding: utf-8 -*-

from django.contrib import admin

# NAVMENU ######################################################################

from navmenu.models import Menu, MenuItem

class MenuItemInline(admin.TabularInline):
    model = MenuItem
    extra = 5

class MenuOptions(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}
    inlines = [MenuItemInline]

admin.site.register(Menu, MenuOptions)